<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>
    <div class="form-content">
        <form class="form-horizontal" id="form-post-edit" >
            <input name="id"  type="hidden"  th:field="*{gift.id}" />
            <h4>编辑赠品信息</h4>
            <br>
            <hr>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label"><span style="color: red; ">*</span>赠品名称：</label>
                        <div class="col-sm-10">
                            <input class="form-control" placeholder="请输入产品名称" type="text" name="giftName" id="giftName" th:field="*{gift.giftName}" required>
                        </div>
                    </div>
                </div>
            </div>
            <br>
            <hr>
        </form>
    </div>
    <!--<div class="row">-->
        <!--<div class="col-sm-offset-5 col-sm-10">-->
            <!--<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;-->
            <!--<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>-->
        <!--</div>-->
    <!--</div>-->
	<div th:include="include::footer"></div>
	<script th:src="@{/ajax/libs/select/select2.js}"></script>
	<script type="text/javascript">
        var prefix = ctx + "gift/gift";

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
            }
        }
    </script>
</body>
</html>